package com.liry.security.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 认证服务
 * @author ALI
 * @since 2023/6/10
 */
public interface AuthService {

    /**
     * 验证码
     */
    void captcha(HttpServletRequest request, HttpServletResponse response);

    /**
     * 验证验证码
     * @return true：验证成功，是对的
     */
    boolean validCaptcha(HttpServletRequest request);
}
